<%= render :partial => 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= t('cloudsponge.cloudsponge_settings') %>
<% end %>
<br/>
<a href='http://www.cloudsponge.com/?utm_source=sweet_spree&utm_medium=partner&utm_campaign=integrator' target='_blank'>CloudSponge</a> is the driving engine behind the spree_multi_share gem. 
<br/><br/>
<h1>What is CloudSponge?</h1>
<br/>
CloudSponge provides software that enables your users to send links for products on your website to their contacts from a variety of the most popular webmail services including Yahoo, Hotmail and Gmail and desktop address books such as Outlook and Mac Address Book.<br/>
<br/>
<a href='https://www.cloudsponge.com/sign-up?utm_source=sweet_spree&utm_medium=partner&utm_campaign=integrator' target='_blank'><img src='/assets/spree/cs_signup.png'></a><br/>
<br/>
Once you've signed up just enter in your domain key and domain password below and "Tell Your Friends!" links should appear next to all your products!<br/>

<%= form_tag(admin_cloudsponge_settings_path, :method => :put) do |f| -%>

  <fieldset class="no-border-top">
    <div data-hook="admin_cloudsponge_settings" class="row">

      <div data-hook="domain_key" class="field">
        <label><%= t('cloudsponge.domain_key') %></label><br>
        <%= text_field_tag('preferences[domain_key]', Spree::Cloudsponge::Config[:domain_key], :size => 40) %>
      </div>

      <div data-hook="domain_password" class="field">
        <label><%= t('cloudsponge.domain_password') %></label><br>
        <%= text_field_tag('preferences[domain_password]', Spree::Cloudsponge::Config[:domain_password], :size => 40) %>
      </div>
    </div>

    <div class="form-buttons filter-actions actions" data-hook="buttons">
      <%= button t(:update), 'icon-refresh' %>
    </div>

  </fieldset>

<% end -%>
